package ACEbrickBreaker;

/**
 * <p>
 * Title: Score
 * </p>
 * <p>
 * Description: Score This class contains getters and setters for Score objects
 * (name, score, time) so that the objects can be sorted by score for the High
 * Scores XML.
 * 
 * @author Caitlin Finn
 * @email caitlin.finn@my.uwrf.edu
 * @author Erin McNeil
 * @email erin.mcneil@my.uwrf.edu
 * @author Andrew Juranek
 * @email andrew.juranek@my.uwrf.edu
 * @date December 10th 2012
 */

public class Score {

	/**
	 * @param args
	 */
	private final String name;
	private final int score;
	private final String time;

	/**
	 * @param name
	 * @param score
	 * @param time
	 */
	public Score(String name, int score, String time) {
		this.name = name;
		this.score = score;
		this.time = time;
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	/**
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return score
	 */
	public int getScore() {
		return score;
	}

	/**
	 * @return time
	 */
	public String getTime() {
		return time;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Player: " + name + " \nScore: " + score + "\n Time: " + time;
	}

}
